package from;

import org.apache.wicket.feedback.FeedbackMessage;
import org.apache.wicket.feedback.IFeedbackMessageFilter;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.panel.FeedbackPanel;

public class FeedBackPage extends WebPage implements IFeedbackMessageFilter {
    public FeedBackPage(){
        super();

        this.add(new FeedbackPanel("feedback"));
        Form form = new Form("form2"){
            protected void onSubmit(){
                info("submitted");
            }
        };
        form.add(new TextField<>("name"));
        this.add(form);
    }

    @Override
    public boolean accept(FeedbackMessage message) {
        return false;
    }
}
